package com.david.equipment.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import org.checkerframework.checker.formatter.qual.Format;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
public class DeviceEntity implements Serializable {
    private Integer id;
    private String name;
    private int typeId;
    private String model;
    private String code;
    private Integer vendorId;
    private LocalDate purchaseDate;
    private Integer deptId;
    private Integer deviceStatusId;
    private Integer useStatusId;
    private Float servicePeriod;
    private Float depreciationPeriod;
    private String pictureUrl;
    private String documentsUrl;
//    private List<String> pictureUrl;
//    private List<String> documentsUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
